package com.bgs.eat.shortMessage.controller;

import com.bgs.eat.config.CommonResult;
import com.bgs.eat.shortMessage.service.ShortMessageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * @ClassName shortMessageController
 * @Description TODO
 * @Author hbx
 * @Date 2022/10/11 20:18
 **/
@RestController
@RequestMapping("/shortMessage")
@CrossOrigin
public class ShortMessageController {
    @Autowired
    ShortMessageService shortMessageService;

    /**
    * @Author hbx
    * @Description 向手机号发送验证
    * @Date 2022/10/11 20:31
    * @param phone
    */
    @GetMapping("/SendVerificationByPhone")
    public CommonResult SendVerificationByPhone(String phone,String codeMark){
        return shortMessageService.SendVerificationByPhone(phone,codeMark);
    }
}
